<template>
	<view>
		导航页
		<navigator url="../showimage/showimage?id=80">跳转到图片显示页面</navigator>
		<navigator url="../message/message" open-type="switchTab">跳转到信息页面</navigator>
		<navigator url="../showimage/showimage" open-type="redirect">跳转到图片显示页面</navigator>
	<button type="primary" @click="goToImgPage()">跳转到图片显示页面</button>
	<button type="warn" @click="goToMessagePage()">跳转到信息显示页面</button>
	<button type="primary" @click="goToImagePage()">跳转到图片显示页面</button>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goToImgPage(){
				uni.navigateTo({
					url:"../showimage/showimage?id=500&name=tom"
				})
			},
			goToMessagePage(){
				uni.switchTab({
					url:"../message/message"
				})
			},
			goToImagePage(){
				uni.redirectTo({
					url:"../showimage/showimage"
				})
			}
			
		},
		onUnload(){
			console.log("页面卸载了")
		}
	}
</script>

<style>

</style>
